package com.ww.activiti.service.impl;

import com.querydsl.jpa.impl.JPAQueryFactory;
import com.ww.activiti.service.ProcessInfoService;
import com.ww.orm.entity.ActReModelEntity;
import com.ww.orm.entity.ActReProcdefEntity;
import com.ww.orm.respository.ActReModelRespostory;
import com.ww.orm.respository.ActReProcdefRespostory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 *
 * @Auther: sunnannan
 */
@Service
public class ProcessInfoServiceImpl implements ProcessInfoService {

    @Autowired
    private JPAQueryFactory jpaQueryFactory;
    @Autowired
    private ActReModelRespostory actReModelRespostory;
    @Autowired
    private ActReProcdefRespostory actReProcdefRespostory;

    @Override
    public List<ActReModelEntity> models() {
        return actReModelRespostory.findAll();
//        return null;
    }

    @Override
    public List<ActReProcdefEntity> process() {
        return actReProcdefRespostory.findAll();
    }

}
